<!DOCTYPE html>
<html>
<head>
<title>进货表</title>
<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="form-group col-sm-2">
			<input type="text" class="form-control" v-model="q.phone" @keyup.enter="query" placeholder="手机号">
		</div>
		<div class="grid-btn">
			<#if shiro.hasPermission("sys:replenish:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;审核</a>
			</#if>
			<#if shiro.hasPermission("sys:replenish:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="replenish.name" readonly="readonly" placeholder="姓名"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">手机号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="replenish.phone" readonly="readonly" placeholder="手机号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="replenish.idcard" readonly="readonly" placeholder="身份证号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证正面图片</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="replenish.carduppic" readonly="readonly" placeholder="身份证正面图片"/>
			    </div>
										<div class="col-sm-10">
											<img  :src="carduppiccache" style="max-width: 400px">
										</div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证反面图片</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="replenish.carddownpic" readonly="readonly" placeholder="身份证反面图片"/>
			    </div>
										<div class="col-sm-10">
											<img  :src="carddownpiccache" style="max-width: 400px">
										</div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">金额</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="replenish.money" readonly="readonly" placeholder="金额"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">交易号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="replenish.outorderno" readonly="readonly" placeholder="交易号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">支付凭证</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="replenish.paypic" readonly="readonly" placeholder="支付凭证"/>
			    </div>
										<div class="col-sm-10">
											<img  :src="paypiccache" style="max-width: 400px">
										</div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="replenish.createdate" readonly="readonly" placeholder="创建时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">用户id</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="replenish.userid" readonly="readonly" placeholder="用户id"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="approved" value="批准"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-primary" @click="refuse" value="拒绝"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/replenish.js?_${.now?long}"></script>
</body>
</html>